package net.pingfang.util;


import org.apache.commons.lang3.StringUtils;

import java.util.Arrays;
import java.util.List;

/**
 * 切分工具
 *
 * @Author: CM
 * @Date: 2022/7/1 15:52
 */
public class SplitUtil {

    public static final String SPLIT = ",";

    public static List<String> stringToList(String data){
        if (StringUtils.isEmpty(data)){
            return null;
        }
        return Arrays.asList(data.split(SPLIT));
    }

}
